package com.ruoyi.performance.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.performance.api.factory.RemotePerformanceFallbackFactory;
import com.ruoyi.performance.domain.SysPerformanceType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "remotePerformanceApi",
        path = "/type",
        value = ServiceNameConstants.PERFORMANCE_SERVICE, fallbackFactory = RemotePerformanceFallbackFactory.class)
public interface RemotePerformanceApi {
    @GetMapping("/getAll")
    public R<List<SysPerformanceType>> getAll();

}
